package com.cz;

import nova.traffic.NovaTraffic;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Dapingtext {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(5000);
        while (true) {
            Socket socket = serverSocket.accept();
            Thread t1 = new Thread(new Runnable() {
                public void run() {
                    NovaTraffic novaTraffic = new NovaTraffic(socket);
                    try {

                    } catch (Exception e) {
                        e.printStackTrace();
                    } finally {
                        try {
                            socket.close();
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                    }
                }
            });
            t1.start();
        }
    }
}
